<?php session_start(); ?>
	
<!DOCTYPE html>
<html>
	<head>
		<title>Cameleon events - Sorties et Evénements en France</title>
  		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<link rel="stylesheet" href="../Vue/CSS/evenement.css" />
		<script type="text/javascript" src="../Vue/JavaScript/afficheInfo.js"></script>
		<script type="text/javascript" src="../Vue/JavaScript/afficheNote.js"></script>
		<script type="text/javascript" src="../Vue/JavaScript/jquery-1.2.6.min.js"></script>
		<script type="text/javascript" src="../Vue/JavaScript/animeImage.js"></script>
   	</head>

   	<body>			
		<?php 
			//Traitement des notes et commentaires
			if(isset($_POST['contenu']) || isset($_POST['note'])) {
				include('../Modele/enregistrer_commentaire.php');
			}

			//Traitement du like
			include('../Modele/traitement_like.php');
			if(isset($_POST['like'])) {
				insererLike($_GET['id'], $_SESSION['id'], 'evenement', $_SESSION['statut']);
			}
		
			include('../Modele/traitement_evenements.php');
			include('../Modele/traitement_note.php');			
			include('../Vue/evenement.php'); 
		?>
	</body>
</html>